package cn.new7as.cas5s.anhjkfu;

import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.ScrollView;

import androidx.annotation.Nullable;


public class AScrowView extends ScrollView {

    public AScrowView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }



    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
        ViewGroup.LayoutParams params = getLayoutParams();
        params.height = getMeasuredHeight();
       // setNestedScrollingEnabled(false);
    }


}
